import request from '@/utils/request'

// 查询存储标签的库列表
export function listLable(query) {
  return request({
    url: '/Label/Lable/list',
    method: 'get',
    params: query
  })
}

// 查询存储标签的库详细
export function getLable(uid) {
  return request({
    url: '/Label/Lable/' + uid,
    method: 'get'
  })
}

// 新增存储标签的库
export function addLable(data) {
  return request({
    url: '/Label/Lable',
    method: 'post',
    data: data
  })
}

// 修改存储标签的库
export function updateLable(data) {
  return request({
    url: '/Label/Lable',
    method: 'put',
    data: data
  })
}

// 删除存储标签的库
export function delLable(uid) {
  return request({
    url: '/Label/Lable/' + uid,
    method: 'delete'
  })
}
